package cn.zkc.pattern.Singleton;

/**
 * @Author : kay
 * @Date : 2020-07-03 17:54
 * @Description  懒汉式
 **/

public class LazySingleton {

    private static LazySingleton intance = null;

    public LazySingleton() {
    }

    public static LazySingleton getLazySingleton() {
        if (intance == null) {
            intance = new LazySingleton();
            }
        return intance;
    }
}